﻿using System.ComponentModel.DataAnnotations;

namespace DTOs
{
    public class UserDto
    {
        /// <summary>
        /// 用户信息ID
        /// </summary>
        [Key]
        public int userInfoId { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string? userInfoName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? password { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? userName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool userSex { get; set; }
        /// <summary>
        /// 省份ID
        /// </summary>
        public int provinceId { get; set; }
        /// <summary>
        /// 市ID
        /// </summary>
        public int cityId { get; set; }
        /// <summary>
        /// 县ID
        /// </summary>
        public int countryId { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string? userAddress { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDel { get; set; } = false;

        /// <summary>
        /// 省份名称
        /// </summary>
        public string? provinceName { get; set; }
        /// <summary>
        /// 市名称
        /// </summary>
        public string? cityName { get; set; }
        /// <summary>
        /// 县级名称
        /// </summary>
        public string? countryName { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int departmentId { get; set; }
        public List<RolesDTO> rolesDTOs { get; set; }
    }
}
